<?php

use yii\helpers\Html;
//use yii\grid\GridView;
use kartik\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel common\models\UnitSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = Yii::t('app', 'Units');
$this->params['breadcrumbs'][] = $this->title;
?>
<link rel="stylesheet" href="/static/css/gridview.css">
<div class="unit-index">

    
    <?php echo $this->render('_search', ['model' => $searchModel]); ?>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        //'filterModel' => $searchModel,
        'columns' => [
           // ['class' => 'yii\grid\SerialColumn'],

            'id',
            'name',
          /*   'status',
            'unitTypeId',
            'default', */
            //'rate',
            //'guid',
            //'isDelete',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>
</div>
